<script>
function isDigit(s)
{
var patrn=/^[0-9]{1,20}$/;
if (!patrn.exec(s)) return false
return true
}
alert(isDigit(33));
alert(2);
</script>